class CommentablesObserver < ActiveRecord::Observer
	
   observe Post

   def after_create(commentable)
   	 if !commentable.user_id.nil?
       commentable.add_last_visit_with_watching(commentable.user_id)
 	 end
   end
    
end